package com.sifour;

import com.sifour.entity.Card;
import com.sifour.entity.GoldenCard;
import com.sifour.entity.NormalCard;
import com.sifour.entity.SilverCard;

public class Client {
    public static void main(String[] args) {
//        测试普通卡用户
        Card normalUser = new NormalCard();
        normalUser.display();
        normalUser.discount();
//        测试金卡用户
        Card goldenUser = new GoldenCard();
        goldenUser.display();
        goldenUser.discount();
//        测试银卡用户
        Card silverUser = new SilverCard();
        silverUser.display();
        silverUser.discount();
    }
}
